﻿using System;

namespace DataConvertLib
{
	/// <summary>
	/// 带二个数据的操作结果类
	/// </summary>
	/// <typeparam name="T1">类型1</typeparam>
	/// <typeparam name="T2">类型2</typeparam>
	// Token: 0x02000010 RID: 16
	public class OperateResult<T1, T2> : OperateResult
	{
		/// <summary>
		/// 构造方法
		/// </summary>
		// Token: 0x0600008E RID: 142 RVA: 0x00005067 File Offset: 0x00003267
		public OperateResult()
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">操作是否成功</param>
		// Token: 0x0600008F RID: 143 RVA: 0x00005071 File Offset: 0x00003271
		public OperateResult(bool isSuccess) : base(isSuccess)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="message">错误信息</param>
		// Token: 0x06000090 RID: 144 RVA: 0x0000507C File Offset: 0x0000327C
		public OperateResult(string message) : base(message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		// Token: 0x06000091 RID: 145 RVA: 0x00005087 File Offset: 0x00003287
		public OperateResult(int errorCode, string message) : base(errorCode, message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">是否成功</param>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		// Token: 0x06000092 RID: 146 RVA: 0x00005093 File Offset: 0x00003293
		public OperateResult(bool isSuccess, int errorCode, string message) : base(isSuccess, errorCode, message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">是否成功</param>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		/// <param name="content1">数据1</param>
		/// <param name="content2">数据2</param>
		// Token: 0x06000093 RID: 147 RVA: 0x000050A0 File Offset: 0x000032A0
		public OperateResult(bool isSuccess, int errorCode, string message, T1 content1, T2 content2) : base(isSuccess, errorCode, message)
		{
			this.Content1 = content1;
			this.Content2 = content2;
		}

		/// <summary>
		/// 数据1
		/// </summary>
		// Token: 0x17000008 RID: 8
		// (get) Token: 0x06000094 RID: 148 RVA: 0x000050BF File Offset: 0x000032BF
		// (set) Token: 0x06000095 RID: 149 RVA: 0x000050C7 File Offset: 0x000032C7
		public T1 Content1 { get; set; }

		/// <summary>
		/// 数据2
		/// </summary>
		// Token: 0x17000009 RID: 9
		// (get) Token: 0x06000096 RID: 150 RVA: 0x000050D0 File Offset: 0x000032D0
		// (set) Token: 0x06000097 RID: 151 RVA: 0x000050D8 File Offset: 0x000032D8
		public T2 Content2 { get; set; }
	}
}
